package com.lxl.demo01.controller.utils;

import lombok.Data;

@Data
// 该类用于设计统一的返回值结果，便于前端开发读取数据
public class R {
    private Boolean flag;
    private Object data;

    public R() {
    }

    public R(Boolean flag) {
        this.flag = flag;
    }

    public R(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }
}
